package com.voole.service;

import java.util.Collection;
import java.util.List;
import java.util.Map;

import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

import com.voole.entity.SysRole;
import com.voole.entity.SysUser;

public interface ISysRoleService {
	
	/**
	 * 权限列表（分页）
	 */
	Map<String, Object> findByPage(String start, String length) throws Exception;
	
	/**
	 * 权限列表（分页）
	 */
	List<SysRole> getList() throws Exception;
	
	/**
	 * 新建权限
	 */
	Map<String, Object> addSysRole(String roleName, String roleEn, Integer status) throws Exception;
	
	/**
	 * 设置权限
	 */
	Map<String, Object> setSysRole(String roleId, String actionIds) throws Exception;
	

}
